package com.bdqn.mapper;

import com.bdqn.pojo.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SupplierMapper {
    /**
     * 根据供货商名称查询供货商
     *
     * @param supName
     * @return
     */
    List<Supplier> selectSupplierBysupNameList(@Param("supName") String supName);

    /**
     * 查询所有供货商
     *
     * @return
     */
    List<Supplier> getAll();

    /**
     * 根据供货商ID删除
     * @return
     */
    public int delID(@Param("id") Integer id);
}
